package com.company.command;

/**
 * 接收者角色，遥控车，真正执行命令的对象
 */
public class RemoteControlCarReceiver {

    public void on(){
        System.out.println("遥控车开机了");
    }

    public void forward(){
        System.out.println("遥控车前进了");
    }

    public void back(){
        System.out.println("遥控车后退了");
    }

    public void left(){
        System.out.println("遥控车左转了");
    }

    public void right(){
        System.out.println("遥控车右转了");
    }

    public void off(){
        System.out.println("遥控车关机了");
    }
}
